package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EasBaseCourseMapper;
import com.ruoyi.system.domain.EasBaseCourse;
import com.ruoyi.system.service.IEasBaseCourseService;

/**
 * 订单信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-18
 */
@Service
public class EasBaseCourseServiceImpl implements IEasBaseCourseService 
{
    @Autowired
    private EasBaseCourseMapper easBaseCourseMapper;

    /**
     * 查询订单信息
     * 
     * @param id 订单信息主键
     * @return 订单信息
     */
    @Override
    public EasBaseCourse selectEasBaseCourseById(String id)
    {
        return easBaseCourseMapper.selectEasBaseCourseById(id);
    }

    /**
     * 查询订单信息列表
     * 
     * @param easBaseCourse 订单信息
     * @return 订单信息
     */
    @Override
    public List<EasBaseCourse> selectEasBaseCourseList(EasBaseCourse easBaseCourse)
    {
        return easBaseCourseMapper.selectEasBaseCourseList(easBaseCourse);
    }

    /**
     * 新增订单信息
     * 
     * @param easBaseCourse 订单信息
     * @return 结果
     */
    @Override
    public int insertEasBaseCourse(EasBaseCourse easBaseCourse)
    {
        return easBaseCourseMapper.insertEasBaseCourse(easBaseCourse);
    }

    /**
     * 修改订单信息
     * 
     * @param easBaseCourse 订单信息
     * @return 结果
     */
    @Override
    public int updateEasBaseCourse(EasBaseCourse easBaseCourse)
    {
        return easBaseCourseMapper.updateEasBaseCourse(easBaseCourse);
    }

    /**
     * 批量删除订单信息
     * 
     * @param ids 需要删除的订单信息主键
     * @return 结果
     */
    @Override
    public int deleteEasBaseCourseByIds(String[] ids)
    {
        return easBaseCourseMapper.deleteEasBaseCourseByIds(ids);
    }

    /**
     * 删除订单信息信息
     * 
     * @param id 订单信息主键
     * @return 结果
     */
    @Override
    public int deleteEasBaseCourseById(String id)
    {
        return easBaseCourseMapper.deleteEasBaseCourseById(id);
    }
}
